fix for rails 2.3