fix(modal): issues with more than 1 modal code