make password clearing compatible with mac