fix update room function