Fixed bad version retrieval