Multiple ionic modals

Is there a way for me to make a multiple modals? I have a $interval function that calls modal window but when second modal opens and i press ok, $scope.modal.hide and $scope.modal.remove only closes last modal. When i click on first modal OK button, it fires callback function but it does’t closes the modal. What to do?