fixed version bug and other bugs