fix object literal handling