Fix case where current.getWidth() is 0.