Fixed incorrect '<' test