Fixing energy window rendering.