Fix for bad packages.
Fix for bad packages.

Fixes #473
Closes #471
Closes #472

HospitalRun/hospitalrun-frontend,HospitalRun/hospitalrun-frontend,HospitalRun/hospitalrun-frontend,HospitalRun/hospitalrun-frontend