Syntax fix in hooks.lua.