Fix a bug on old devices