res:dock:: fix some bugs.