Fix glitch for API