fixed bug in script where parser used wrong key