Fixes incorrect inclusion of temporary variable inside loop condition