fixed swp problem