fixing receivedPackages bug