AI time bug fixed