Fixed error when updating the default section