Fixing the invocation of Platform.runtime