correct bug and dependencies