Fix error on controller creation