Fixed qError is undefined