Quriks mode
fixed handling of onerror handlers