*fixed undefined value when no value from remote functions is returned