fix hack condination