fix for element's offsets after building