fixed premaster secret struct and isolated error