fix controller and services for minify