avoid npe on weird platform bugs