Fix possible function redeclaration