Fixing calling wrong dialog when changing scenes