fixed centering bug