fixed error on default capacity