fixed a problem with devel/production mode