Fixed major issue with update function