fixed permission of hooks