small fixes on platform