fix bug for mobile