Fix assertion in absolute_to_relative