fix casting error on time