improved badge initialization and positioning

on windows