Epic hack to make delete button work