fix bug when container has padding