resolved bugs for lock_free