Fixes a bunch deprecation warnings in templates