Fix bug on required