Bug with undefined object in parsing results