fix init type of titanium