fix `[]=' exception