Fix truncate on Heroku