Setting a user file extension is not working