Security fixes highlighted by code climate