fixed error in tag controller