fixed depricated render usage