Fixed out of bound bug, thanks Pawnguy