Fix angular scope issue