Fix closure's reference to outer closure

 #KT-3276 Fixed