Resolving error occured in heroku due to invalid syntax