fixed local variables issue per RailsBP