fixed crash on deleting display