fixing type in rake task