fixed bug

list could not be added, because modalInstance didn't provide the list