bugfix for parse patched in js code