fixed bug with decimal attribute