Fixed hide-show mode in c hooks