Fixed a bug that prevented newly created sheets from being locked