Fix issue where extension wasn't provided.