sys funciton test & fix history bug