fixed -z error