Fixed SP flags not saving