A wax ring should always be installed beneath the toilet flange. This will help build a barrier and prevent water from leaking over.