fixed trouble with char[]