fix clip check for rotated datasets