Fix if statement as ignore param for cols is false