Fixed a rare bug on some Android versions