fix for multiple synchronous hooks (synchronous hooks to be deprecated in 0.4x)