fix for app builder bug

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