better fix for constructor url generation