fix indexOf ./ to indexOf /.