Fixed greater than bug