change the way to convert
make it works if the first profile does not have any services
allow to have a nil formula