Fixed rendering and removed extra console logs.