added fix_bug and selsave