It's possible that environment variables are messing with the code, make sure to check them on Project Settings > Environment Variables