Minor fixes for sort, multiply