fixed unexpected exception when result from remote is empty