Original structure was built on 2016.3 and then c direction was expanded for having large vacuum. But after opening the structure in 2016.4 and saving a new .py file, it is now possible to change lattice etc.
I think it was more of a version problem.