Bugfix: reinstate accidentally removed action hook