Fix function result code for core-execute command.