Fixed handling of datetime parsing errors
Fixed some errors where fields were being called as attributes rather than as dict keys