fix a bug that prevent layer of updating