Fixed api2 code style