small fixes in auto.php