fixed bug with default extension