Fixes the 'pop index out of range'- error if an input file with xyzc-Axistags is selected