Fix some chunks not being sent to the client

Credit to @md-5