If there are three services in a map, and one of them is a cached map service, then the display order is not correct in the Web application for the middle layer (dynamic) when the middle layer (containing polygons) is turned off and then turned on when the third service(cached) having image being turned off. It gets displayed on top of features from top layer (cached map service).