fixed scale type in database