Fixed warnings in finish.c