fix some bugs
frontend