fixing the blank id delete issue