Fix a bug with deleting the last drawable