fix some errors in JSAccessor cases