remove file extension treatment. thanks @simensen