Refilling process in the plasmasphere and its relation to magnetic activity