put back the delay
corrected type casting bug