fixed typo in ref-and-fn post update