fix bugs : centering and slow rendering