Slight fix for cell generation.