Fixed bug when limitAttr is nil