Fixed wrong clause order in simplifyFrac