removed double render problem