fixed bug in genus calculation