Profile and message script fix