another bugfix for refs without source