fixed when the len of filename is lower than 4