Why does this happen when moving shape