[Bugfix] need to check wantarray