commit in case of crash
fix duplication problem