fixed child-centering so it doesn't happen when the child is too large