Fixed blank page issue when creating widgets