fix 5962: Coordinates tag showing wrong coordinates while modal bar is open

fix #5962: fixing by hiding guides when modal bar opens.