* fix syntax error and bugs.