Fix bug on scatter