Fix hooks issue (#5)