Fixing osd detection.