Fixed missed messages bug. Thanks @huiloon-y!