Fix badge draw crash