Fixed a bug in the filename length calculation