Switch round a bogus if statement I've just noticed. Both the write to