fix small bugs, message script work