fix minor issues on initialize/render calling