Fixes compile errors