fixed read deadlock