fix some function bug