fix postrouting bugs