Fix bug in TWAObject