fix packages inter dependencies