fix type exception for phrase