Fix dump on getting attribute error