docs undefined error