fixed multiplatform bug