fix problem that goal-shape's height become always zero