fix #51 (error while getting list of references