fixed dependency bugs