small fix on api ready