fixed bug present in production mode