fix small format bug