Fixing vertical chunk flipping