bug fix when no scaling