fix bug in medium widget