Fixed file val bug