cursor rendering bug