fixed form issue when changing locale