fixing bug in all layers not showing modals