correct issue when type is not specified