fix unless condition