small fixes for qual test