weird code fix