Finally fixed platform/device selection.