Fix where dependencies weren't passed global_params