remove duplicated code - add missing semicolons

Signed-off-by: Guillaume George <guillaume.george@etu.utc.fr>