bug with destroying detected