fix bug checking if a dependency has been set