minor fixes to make sure that gender works properly