Fixing broken modal reference