fixing desktop hiding element bug