fixed bug in rake task