Fix searching for parent form