fix bug with destroy being redirected.