scaling fixes