fix bug with draggable widget when initializedb run itself