fixes online bug

fixes online bug