Fix deleting problem

This will make it work :+1: