Fix $modal being mixed between modals... (bug 998301)