Fixed Bug in onthink