Fixed wrong comparison for detailed status switch