Fix to handle the ves message as array and object