fixed timer bug by parsing string to int