fix bug
add global var to rating field edition