Fix depreciated methods

Removes warning messages from Atom.