Fixed the condition for finished-call