fix when read write have no return var warning