delete useless sql append line
fix bug in label management