Fix issue when @extesion is empty