Engine: Fixing rails script