x_getattr fix length