Fixed bug with modals not working after .ajax call