Fixed bug that when reach out of bounds cause drawing offsets