fixing rice input