fixed bug in capped, added capped delete after