fixed broken render method