PS. If I manually set wrapcmd to True, everything works correct.