0f7bbde fix logic

Authored and Committed by kkleine 3 months ago
    fix logic