fix pie state