fixed corrupt atomic check