fix bug in with_absolute_references