Fixed bug which prevent from removing lockout without manually saving lockout.