* avi : fixed a lock problem.