fix bugs in new platform