fix model period bug