fix "rails 0.9.5" issue