fix angular crashing on user save