You may have set the denominator equal to 0, but then factored or solved it incorrectly.