change order to check global version & fix typo