Fixed error in production emails