fix received from null issue