Fixed completion hook, thanks to nsf!