fixed the unite source

It seemed to be using a function that does not exist, so it has been fixed to work correctly.