fixed bug in type for getId