mailtype fix