fixed a compile error when in production mode