fix odd bug that occurs after a user creates a version

http://manage.dimagi.com/default.asp?52301