Fix specification of format if extension included