$_top and $_parent magic vars work properly in callbacks