Fixed usage of seal functions