Resource double definition fix