Fixed bug with rake tasks failing