fix stupid bug in aoinit