Fix bug with missing source attribute