fixed the bug when on desktop