fixing broken rendering call