fix userid as nil and  not apply problem