Fixed an issue which caused a wfs error during sync.