Fixed bug in Reference module