app.rb thpo fix