wrapper bug solving