Correcting angular ref