Change deprecated code comment
Fix regression when a callback function is provided