Fixes all problems with Rails