fixes to modal