Fixing cloudcode function call