Fixed lagging issue on some devices