The problem of the detaching shell in the shell model potential for oxides