Fixed build error
Fixed factory-girl deployment