fix a bug for if else statement
try to make travis back to normal