Fix for error listener + typo -- Related to #1334