Ctype fix