fixes errors in getErrors() not being a method