bug fix for viewbuilder