Fix some minor gl errors