Fix package atom parsing