fixed bug in modals