fix jump condition