fixes email sent certificates issue where equality mixed up with assignment operator