Fix checking version