fixed wrong selection bug and start mfs code