Fix email panel bug
this fixes #4