fixed alias issue when referring to associations and using dp statements