fixed compilation issues

again fixed compile issues because of swift changing all the time