fixed update sections method, gsub on wrong type