fix use of uninitialized variables in erasesprt on startup