Fix using old metadata entry

Use variables instead of cellhascode