Fix unique id changes at php 4.4