fix slice statement