fix a couple of autobugs