fix update method in core class