fix code style issues in packages controller

related to issue #130