fixed the error with a single col