Fixes slice weirdness.