Fixed out of bounds issue!

A simple '<=' instead of '<' can crash a whole program. :D