Add values size check in parser. Fixes segmentation fault.