Added same patch from knmnyn/ParsCit for Alex Garnett's bug report