fix some paths in hooks