fix work with recent atom versions