fixed bug: type