fixed required client/group bug

Signed-off-by: Álex Mesquita <alex.mesquita06@hotmail.com>
Signed-off-by: Bruno de Amorim Campos <amorim.software@gmail.com>