callterminated bugfix