Fixed a bug with not setting the write last_used