prop_flag set to 0 at case 0 for index
prop_flag was being changed inside a switch to prop_flag... which was causing logical errors.