fix type elasticsearch