[NEXUS-5995] Fix compilation problem & reformat

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>