fix wrapper positioning bug