fixed problem with type