Correct bug with getExtention (missing dot).