fixed MSS bug