#42: added double parsing error handling