fixes broken api