fixed mail out of bounds bug