small fix, completion wasnt called in error case