Fixed the discrepancy in resultant