Fixed static analyser warning