Bug fix when changing layers and request getFeatureInfo