Fixed a minor issue where updateValues was being called from a wrong method