Fix for elasticsearch object type