[Bugfix] fixed a query that still doesnt work in heroku