fix content insert condition