fixed bug in loading paths for production mode