fixed bug with temporary variable addressing