Fixed warning when filename is too long