Fixed issue with 2 rake tasks running every time