Fixed bug when tuby crashed on function call, but the problem is that all params are sended by reference