fix nil warnings in atom generation