Fixed the type error for filing bug via API.