small fixes for zas.c