Added fix to throwError