Bugfix for Doctrine Registry