prevent error on desktop