Fix an issue where ready() would be called twice