Tested and fixed on real device.