fix bugs and update version