atomic bug fixed