small fix string to integer for hours