fixed min to sec bug