Ymn7: some bugs cleared

some bugs cleared