fix false case permanent option and test covered