Fixed cannot send admin emails errors.