fix some syntax error, fix content not unset