fixed 'out of range'