fixed local variables type detection