correct issue when no type is specified