small fixes, forgotten var declarations