fix strange behavior of private.xml