fix minor bugs preventing execution...