Fixes bug with destroy action