solve some reference problem