fix for type