protect against possible concurrency bug