bugfix: callbacks were being called without all arguments in some cases