fix minor errors in previous commit (missing const, missing semicolon)