Change order in UPlayer.detachId to avoid NPE.