fix scale trough borders