Small bug in table locks fixed