fixed baseunit changed capital letters in getstate