Fixes legacy build