Fixed a bug in delay() which appears for values below 1000