Fix controller creation with parameters