Fixes code violations