fix case of location.go(-1)