fixed deg to sex negative error