Fixing log protection status function