Fixed wrong start stop conditions.