Fixed update bug]
Merge pull request #42 from ucberkeley/bugFixes

Fixed update bug