Fixed a parent reference in platform_swaying.