Hello,
That probably just a delay in the propogation. When you went to the www version, it wasn't in you local dns cache, therefore it was fetched, and the correct value was returned. The "domain.com" value might just be stale, so you'll have to wait for your system to fetch the new value.
John