fixed a completion block bug