fixed a couple of bugs

fixed: cached lex assembly wasn't invalidated
fixed: lex format outputs incorrect data when file was updated