fixing dependency scope creation