fix prototype
fix wrong packet in inbox problem