fix bug on modal