fix define type