removed double render bug