Fix Canteen login dialog crash API 8