atom bug fix by @alexanderkiel