Fix timeout, seems it worked only for global wrapping