Uncheck dependencies and main package when unchecking a dependency