fix masthread