fixed deferred message bug