fixing mongoose reference