Fix "$http is not defined"