fix conditional test