bug fixes in sdk