fixed not working example code for modals