fixed rendering bug due to typo in required vars