Bug fix of restored piece side is invalid