fixed issue with wrap and block