Fixes the bash hook