bug fixes on update functions