Quick fix for File element handling