fixed bugs in phrase_net and syn_frame