fixed check of cellnum