fix types overwriting