Fixes slice parsing issue