fixing parse error crash