0072: bugfix and change last_recordnumber -> self