fixes bug in number comparism