Fixed prerequisite check.