potential fix for the nullpointer in the timehandler