fix errors on controller and web service