#273 ensure reference paths are well terminated