fixed non-declaration for loop initialisations crashing, fixed multiple post conditionals being an infinite loop