fix expanded desktop bug