fixed race condition on command buffer.