safe apply did not solve the problem of leaving scope not updating its direction