several bug revised

Typo here?