fixed multiple module resource dependancy problem