small bug fix with email