fix bug for online