Fix input cycle