Fix sub-buffer origin alignment