fix concurrency issue with operation queues
fix memory leak