Fix expanded desktop function

Change-Id: I8fdd77e0ebe41b8bbe770c7b4901d7f0318bb0fe