Fix error in once() handling