fixed bug when removed format option