Fix bug on renderer