Properly initialize scale attribute