fixed error detecting versions