fix some simple bug