fixbug: fix some frame issues