bug in reference map removed