Fixed crash issue for HTC devices with WAL enabled