Fixed a buggy timeout