bugfix (Illegal invocation)