Fixed bug (< should be <=)