Fixed OutOfBounds when shifting