Fixed a small math error I had in my fraction, I had set so that the denomnator couldent be lower than 0, not equal to 0.