Fixed exectution of the else part