Bug on add unit type button click solved