Fixing rake generate

Bug introduced in 4f5f8fc2a69d12fdf3a3cc69e2efaa030c9f2ee0