fixed bug in delay call