fixed getCell bug