solve a bug when sanitise add data field even if field doesn't exist