fix debug statement for update
fix not resolving deferred