fix possible pixels leak