avoid possible notice

no idea why, but ->parent seems for some cases not to be set