fix gender saving bug, #301