Fixed a bug that caused 'last seen' to be incorrect