Fix side effects