update and delete facility bug fix