Fixed error during galley deletion