bugfix when slicing is disabled