Fixed an issue causing an infinite loop after the PTR view has been removed from its parent.