fixes bug for mobile phones