fixes bug with bad ctx in compute_api using

Change-Id: If59ff1ba549b62357d51206dd0372d676dc009bf