fixed error in base handler