Fixed Angular bug of uninstantiated var