Fixed small error in API