bug fix. the col option does not work correctly