fixed views generators error

The migrations and controllers could not be generated because of a
syntax error.