Fixing -P hook