fix rotation issue when inspecting objects