fix error in modal