Fixed error when running in PROD mode