Add workaround for rails 2.3.16