Bugfix to remote method calling