Fixed the capture hook