WIn 10 tablet mode won't turn off

I am looking at a lenovo p40 yoga and tablet mode is still works even though I disabled it in settings my theory is this may be causing the random black screen it does that the ticket came in for any ideas im trying to mess with it and it still does it