Fixed issue with link output for overlay code