fix gotodefinition when applied after refactor