Fixed build error while using SDK 6