fixed time bug
fixed references