fix cookie and precomplie in production