Fixed time to int problem