Fixed imgui rendering