Fixes #9, do not check dependencies twice