* code for task#1395.
 * fix bug#482.
 * adjust the code.
* fix bug#469.
 * fix bug#467.
 * fix bug#461.
 * fix bug#481.
 * fix bug#483.