fix the osd check