Fix datatype for the files view