Fixed problem when there is more widgets than blocks