[FOLD] Fix network simulator receive function