fix BlackBerry and WindowsPhone 8