DSGM_SetLayerPriority bug fix