fix for on_did_read callback