fixed version updating code for core