fixed invalid handle with stamm