Fixing wait() bug.