fixed issues due to change in length