fixed nested autocommands