Fixed setting val by integer