Fixed bug on section update

Small bug when changing section type, should work now.