Fixed check for dependency