fixed rails factor gem