Fixed record second time bug