Misc bugfixes for techniques