IllegalMonitorStateException fix.