weird behaviour at render