2 modal in one controller

I use 2 modal in my controller. I do it for another controller but now i can’t do it. here is my code
`$ionicModal.fromTemplateUrl(‘templates/imagemodal.html’, {
scope: $scope,
animation: ‘slide-in-up’
}).then(function(modal) {
$scope.modal = modal;

$scope.openModal = function() {

$scope.closeModal = function() {

$ionicModal.fromTemplateUrl('templates/profile/changepic.html', {
  scope: $scope,
  animation: 'slide-in-up'
}).then(function(modal2) {
  $scope.changepicim = modal2;
// Cleanup the modal when we're done with it!

$scope.openprof = function() {


$scope.closeprof = function() {

when i use $scope.openprof() console log is
Error: undefined is not an object (evaluating '$scope.changepicim.show')

where i’m wrong?
sorry for bad english.

sorry my bad. The url path was wrong :frowning: sorry for disturb