fixed some issues with foundation modals