Fix bug with private methods in controllers