Fixing pin numbering for overlay