fix some stupid bug