Fix exam table lock bug