fix wifi memory issues