Deprecations causing compiler errors

Hey man. Just fixing a couple compiler errors because of deprecations.