fix bug scale