fix scaling output