fix bug with object literals