bugfix: afterLoad callback