Cleanup

Just some minor issues I noticed while looking through the code. Removes frameCtx.program since it looked unused, the other patch is a small bug fix.