fixed a time problem