Fixed label function
Increased epsilon to avoid invalid cell id bug