Fix removal of chunks from allocated_chunks