Fix RIP detection