Fixes bug in editing file type.