fixes error in BaseHandler