New version of the patch, since X/Y ref was still being read prior to dialog creation rather than after.
New version of the patch, since X/Y ref was still being read prior to dialog creation rather than after.