controller called twice bugfux