minor
fix some autocommands