fix check_output call