Fixing index bug in common recv array