fix cells checking