fixed #51 (update bug)