FIX the bug of not reporting wrong format error