Fix field cells calculation