Fix bug with getmodedetails api endpoint.