fixed atom bug