fixed a bunch of gas segfaults