Fixed the non-working mail button bug