Fixes unused procedure deletion