small fixes. Still crashes when built, but works through editor