Fixed bug that prevented updates from being saved to DB