fixed variable not being integer with rake task