fix endless recursion when building asset dependencies