Fixed a problem in checkColumns() caused by last edit