release v1.2, fix bugs