fix conditon