fixing atom bug