Fixed crash at start