Fixed save function not firing.