fix when target has % width/height