Fixed waiting timeout. Wrong calculation :D