Fixed wrong replacement in layout viewer
Fixed inverse mapping in layout viewer