Fixed whereFormat issue.