Fixed crash in testing widgets