workaround for bug in .parent