fix points error and send_email error