This code was moved from elsewhere, but you're definitely right and I should've spotted this. Thanks.