Fixed a bug from going from slice to another